<table class="table table-striped table-bordered table-hover"
       id="sample-table-1">
    <thead>
    <tr>
        <th>ID</th>
        <th>名称</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {% for item in data %}
        <tr>
            <td>{{ item.id }}</td>
            <td>{{ item.name }}</td>
            <td>
                {% for key,link in item.getLinks() %}
                    <a href="{{ url(link['href']) }}"
                       class="btn btn-xs btn-{% if link['icon'] is defined %}{{ link['icon'] }}{% else %}default{% endif %}"
                       data-target="#{% if link['data-target'] is defined %}{{ link['data-target'] }}{% else %}main{% endif %}">{{ link['name'] }}</a>
                {% endfor %}
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>
